package 水果;

public class Fruit {

    public String name;

    public String origin;

    public double price;

    public Fruit(){
    }

    public Fruit(String name,String origin,double price){
        this.name=name;
        this.origin=origin;
        this.price=price;
    }
    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }
    public String getOrigin() {
        return origin;
    }
    public void setOrigin(String origin) {
        this.origin =origin;
    }

    public double getPrice() {
        return price;
    }
    public void setPrice(double price) {
        this.price = price;
    }

    @Override
    public String toString() {
        return "Fruit{" +
                "name='" + name + '\'' +
                ", origin='" + origin + '\'' +
                ", price=" + price +
                '}';
    }
}
